package com.cxria.shiro.dto;

import io.swagger.annotations.ApiModelProperty;

public class PageDto<T> {

    @ApiModelProperty(value = "查询的页面的页数（默认从0开始）")
    private int pageNo;
    @ApiModelProperty(value = "每页的条数")
    private int pageSize;
    private T entity;

    public PageDto() {
    }

    public PageDto(T entity, int pageNo, int pageSize) {
        this.pageNo = pageNo;
        this.pageSize = pageSize;
        this.entity = entity;
    }

    public int getPageNo() {
        return pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public T getEntity() {
        return entity;
    }

    public void setEntity(T entity) {
        this.entity = entity;
    }

}
